package itheima;

public class Test {


    public static void main(String[] args) {

        Eatable e = new Cat();
        useEatable(e);

     useEatable(new Eatable() {
         @Override
         public void eat(String food) {
             System.out.println("敞开了吃");
         }
     });
     useEatable(food -> System.out.println("lamdbda执行了")
     );

    }
    
    public static void useEatable(Eatable e) {

         e.eat("吃老八秘制小汉堡");
    }
}
